<?php

/**
 * @BelongProject: flami_mangers
 * @Author: Zwc
 * @CreateTime: 2025-11-10 21:26:06
 * @Description: TODO
 */

namespace App\Api;

use App\Domain\OptionDomain;
use PhalApi\Api;

class Option extends Api
{
    public function getRules()
    {
        return [];
    }

    /**
     * 获取参数
     * @return array
     */
    public function getConfig()
    {
        $resData = [
            'code' => 0,
            'msg' => '获取数据成功',
            'info' => [],
        ];
        $configData = OptionDomain::getOptions();
        $resData['info'] = $configData;
        return $resData;
    }


}